--- a/daemon/Makefile
+++ b/daemon/Makefile
@@ -30,7 +30,7 @@ CFLAGS+=	$(shell pkg-config --cflags lib
 CFLAGS+=	$(shell pkg-config --cflags libavutil)
 CFLAGS+=	$(shell pkg-config --cflags libswresample)
 CFLAGS+=	$(shell pkg-config --cflags libavfilter)
-CFLAGS+=	$(shell pkg-config --cflags spandsp)
+CFLAGS+=	$(shell pkg-config --cflags spandsp3)
 CFLAGS+=	-DWITH_TRANSCODING
 CFLAGS+=        $(shell mysql_config --cflags)
 else
@@ -68,7 +68,7 @@ LDLIBS+=	$(shell pkg-config --libs libav
 LDLIBS+=	$(shell pkg-config --libs libavutil)
 LDLIBS+=	$(shell pkg-config --libs libswresample)
 LDLIBS+=	$(shell pkg-config --libs libavfilter)
-LDLIBS+=	$(shell pkg-config --libs spandsp)
+LDLIBS+=	$(shell pkg-config --libs spandsp3)
 LDLIBS+=        $(shell mysql_config --libs)
 endif
 
